package com.example.springiocdemo.Demo;

public class Demo01 {
    public static void main(String[] args) {
        Car car = new Car();
    }

    static class Car{
        private Framework framework;
        public Car() {
            framework = new Framework();
            System.out.println("创建Car~");
        }
    }

    static class Framework{
        private Bottom bottom;
        public  Framework(){
            bottom = new Bottom();
            System.out.println("创建Framework~");
        }
    }

    static class Bottom{
        private Tire tire;
        public Bottom(){
            tire = new Tire();
            System.out.println("创建Tire~");
        }
    }

    static class Tire{
        private int size = 10;
        public Tire(){
            System.out.println("创建Tire~");
        }
    }
}
